<?php
/**
* @author: Nguyen Thanh Tung
* @date: 02/02/2014
*/
// check user add new
if( !isset($AppUI) ||
	!isset($_SESSION['user']) ||
	(isset($_SESSION['user']) && ($_SESSION['user']&1<<1)==0)
	
	/*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
) {
	redirect(HOST_BACKEND);
}
$this->smarty->display('user/add.tpl');